//防抖
let debounce = function(fn,wait){
    var timer = null;
    return function(){
        clearTimeout(timer)
        timer = setTimeout(function(){
            fn()
        },wait)
    }
}
export default debounce